home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Programming / MiniGL / include / mgl / clip.h next >
Encoding:
C/C++ Source or Header  |  2000-04-07  |  771 b   |  38 lines

  1. /*
  2.  * $Id: clip.h,v 1.1.1.1 2000/04/07 19:44:51 tfrieden Exp $
  3.  *
  4.  * $Date: 2000/04/07 19:44:51 $
  5.  * $Revision: 1.1.1.1 $
  6.  *
  7.  * (C) 1999 by Hyperion
  8.  * All rights reserved
  9.  *
  10.  * This file is part of the MiniGL library project
  11.  * See the file Licence.txt for more details
  12.  *
  13.  */
  14.  
  15.  
  16. #ifndef _CLIP_H
  17. #define _CLIP_H
  18.  
  19. void        hc_CodePoint(MGLVertex *v);
  20. GLboolean   hc_DecideFrontface(GLcontext context, MGLVertex *a, MGLVertex *b, MGLVertex *c, GLubyte outcode);
  21.  
  22. /*
  23. ** This structure holds the polygon data for clipping.
  24. */
  25. typedef struct MGLPolygon_t
  26. {
  27.     int numverts;
  28.     int verts[MGL_MAXVERTS];
  29. } MGLPolygon;
  30.  
  31. void        dh_DrawPoly(GLcontext context, MGLPolygon *poly);
  32. void        hc_ClipAndDrawPoly(GLcontext context, MGLPolygon *poly, GLubyte or_codes);
  33.  
  34. #endif
  35.  
  36.  
  37.  
  38.